package transport

import (
	"context"
	"encoding/json"
	"net/http"
	"test/endpoint"
)

func decodeUpperCaseRequest(_ context.Context,r *http.Request)(interface{,error})  {
	var request endpoint.UppercaseResponse
	if err  := json.NewDecoder(r.Body).Decode(&request);err != nil {
		return nil,err
	}
	return request,nil
}

func decodeCountRequest(_ context.Context,r *http.Request)(interface{,error})  {
	var request endpoint.UppercaseResponse
	if err  := json.NewDecoder(r.Body).Decode(&request);err != nil {
		return nil,err
	}
	return request,nil
}
